<!DOCTYPE html>
<html
        lang="zh"
        xmlns:th="http://www.thymeleaf.org"
>
<head>
    <th:block th:include="include :: header('收入信息填写')"/>

</head>
<style>
    .center {
        padding-top: 23px;
        height: 50px;
        padding-left: 55px;
    }

    p input {
        width: 90px;
        /*height: 35px;*/
        background: #FFFFFF none;
        border: 1px solid #e5e6e7;
        border-radius: 4px;
        color: inherit;
        height: 31px;
        font-size: 12px;
        text-align: center;
    }

    label {
        width: 140px;
        text-align: right;
        display: inline-block;
    }

    .production {
        padding-left: 85px;
    }

    .amount {
        width: 118px;
        background: #FFFFFF none;
        border: 1px solid #e5e6e7;
        border-radius: 4px;
        color: inherit;
        height: 31px;
        font-size: 12px;
        text-align: center;
    }

    /*.first {*/
    /*    background-color: rgb(242 242 242/60%);*/
    /*    height: 180px;*/
    /*    width: 1150px;*/
    /*    position: absolute;*/
    /*    left: 83px;*/
    /*}*/

    tabletest {
        padding-left: 235px;
    }

    /*农户基本信息暗底*/
    .famerbase {
        width: 100%;
        background: #fff;
        border-radius: 6px;
        margin-top: 10px;
        padding-top: 5px;
        padding-bottom: 13px;
        box-shadow: 1px 1px 3px rgb(0 0 0 / 20%);
    }

    /*一级标题样式*/
    .firstincome {
        font-size: 20px;
        color: #6379bb;
        border-bottom: 1px solid #ddd;
        margin: 8px 55px 25px 1px;
        padding-bottom: 5px;
        font-weight: 600;
    }

    /*二级标题位置*/
    .secondincome {
        text-align: center;
    }

    body {
        background: #ffffff;
    }
</style>

<body class="white-bg">
<!--农户基本信息-->
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column famerbase">
            <div class="row clearfix">
                <div class="col-md-12 column">
                    <h2 class="text-center" style="font-weight: 600">农户基本信息</h2>
                </div>
            </div>
            <div class="row clearfix">
                <div class="col-md-4 column">
                    <p>户编号: <span id="userId"></span></p>
                </div>
                <div class="col-md-4 column">
                    <p>姓名: <span id="userName"></span></p>
                </div>
                <div class="col-md-4 column">
                    <p>年度: <span id="year"></span></p>
                </div>
            </div>
            <div class="row clearfix">
                <div class="col-md-4 column">
                    <p>自然村: <span id="userVillage"></span></p>
                </div>
                <div class="col-md-8 column">
                    <p>证件号码: <span id="userIdCard"></span></p>
                </div>
            </div>
            <div class="row clearfix">
                <div class="col-md-12 column"></div>
            </div>
        </div>
    </div>
</div>
<div class="center">
    <!--生产经营收入-->
    <div>
        <div>
            <h4 class="firstincome h4">
                生产经营收入>>
                <p style="float: right">
                    <font size="2" color="blue">金额单位为“元”，保留小数点后两位</font>
                </p>
            </h4>
        </div>
        <table width="1200px">
            <tr>
                <td class="secondincome" colspan="3">
                    <h3 class="text-center">种植业收入</h3>
                </td>
            </tr>
            <tr>
                <td height="50px" class="production">
                    <p>
                        水 稻:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="paddy_psv"
                            id="1_1_1_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="paddy_amount"
                                id="1_1_1_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
                <td height="50px" class="production">
                    <p>
                        玉 米:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="corn_psv"
                            id="1_1_2_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="corn_amount"
                                id="1_1_2_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
                <td height="50px" class="production">
                    <p>
                        花 生:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="peanut_psv"
                            id="1_1_3_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="peanut_amount"
                                id="1_1_3_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
            </tr>
            <tr>
                <td height="50px" class="production">
                    <p>
                        高 粱:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="sorghum_psv"
                            id="1_1_4_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="sorghum_amount"
                                id="1_1_4_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
                <td height="50px" class="production">
                    <p>
                        谷 子:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="millet_psv"
                            id="1_1_5_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="millet_amount"
                                id="1_1_5_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
                <td height="50px" class="production">
                    <p>
                        绿 豆:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="mung bean_psv"
                            id="1_1_6_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="mung bean_amount"
                                id="1_1_6_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
            </tr>
            <tr>
                <td height="50px" class="production">
                    <p>
                        小 麦:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="wheat_psv"
                            id="1_1_7_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="wheat_amount"
                                id="1_1_7_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
                <td height="50px" class="production">
                    <p>
                        蔬 菜:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="vegetable_psv"
                            id="1_1_8_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="vegetable_amount"
                                id="1_1_8_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
                <td height="50px" class="production">
                    <p>
                        甜 瓜:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="melon_psv"
                            id="1_1_9_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="melon_amount"
                                id="1_1_9_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
            </tr>
            <tr>
                <td height="50px" class="production">
                    <p>
                        水 果:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="fruit_psv"
                            id="1_1_10_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="fruit_amount"
                                id="1_1_10_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
                <td height="50px" class="production">
                    <p>
                        庭院经济:&nbsp;<input
                            type="text"
                            name="ce_psv"
                            id="1_1_11_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="ce_amount"
                                id="1_1_11_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
                <td height="50px" class="production">
                    <p>
                        其他:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="other1_psv"
                            id="1_1_12_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="other1_amount"
                                id="1_1_12_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
            </tr>
            <tr>
                <td class="secondincome" colspan="3">
                    <h3 class="text-center">养殖业收入</h3>
                </td>
            </tr>
            <tr>
                <td height="50px" class="production">
                    <p>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;猪:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="pig_psv"
                            id="1_2_1_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="pig_amount"
                                id="1_2_1_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
                <td height="50px" class="production">
                    <p>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;牛:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="cattle_psv"
                            id="1_2_2_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="cattle_amount"
                                id="1_2_2_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
                <td height="50px" class="production">
                    <p>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;马:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="horse_psv"
                            id="1_2_3_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="horse_amount"
                                id="1_2_3_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
            </tr>
            <tr>
                <td height="50px" class="production">
                    <p>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;羊:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="sorghum_psv"
                            id="1_2_4_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="sorghum_amount"
                                id="1_2_4_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
                <td height="50px" class="production">
                    <p>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;鸡:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="millet_psv"
                            id="1_2_5_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="millet_amount"
                                id="1_2_5_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
                <td height="50px" class="production">
                    <p>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;鸭:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="mung bean_psv"
                            id="1_2_6_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="mung bean_amount"
                                id="1_2_6_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
            </tr>
            <tr>
                <td height="50px" class="production">
                    <p>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;鹅:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="goose_psv"
                            id="1_2_7_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="goose_amount"
                                id="1_2_7_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
                <td height="50px" class="production">
                    <p>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;鱼:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="fish_psv"
                            id="1_2_8_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="fish_amount"
                                id="1_2_8_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
                <td height="50px" class="production">
                    <p>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;兔:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="rabbit_psv"
                            id="1_2_9_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="rabbut_amount"
                                id="1_2_9_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
            </tr>
            <tr>
                <td height="50px" class="production">
                    <p>
                        其他:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="other2_psv"
                            id="1_2_10_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="other2_amount"
                                id="1_2_10_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
            </tr>
            <tr>
                <td class="secondincome" colspan="3">
                    <h3 class="text-center">第三产业收入</h3>
                </td>
            </tr>
            <tr>
                <td height="50px" class="production">
                    <p>
                        商 业:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="business_psv"
                            id="1_3_1_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="business_amount"
                                id="1_3_1_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
                <td height="50px" class="production">
                    <p>
                        修理业:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="repairing_psv"
                            id="1_3_2_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="repairing_amount"
                                id="1_3_2_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
                <td height="50px" class="production">
                    <p>
                        其他:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
                            type="text"
                            name="other3_psv"
                            id="1_3_3_1"
                            placeholder="产销量"
                    />
                        <input
                                type="text"
                                name="other3_amount"
                                id="1_3_3_2"
                                placeholder="金额"
                        />
                    </p>
                </td>
            </tr>
        </table>
    </div>
    <!--财产性收入-->
    <div>
        <div>
            <h4 class="firstincome h4">财产性收入>></h4>
        </div>
        <table width="1200px">
            <tr>
                <td class="secondincome" colspan="3">
                    <h3 class="text-center">其他性收入</h3>
                </td>
            </tr>
            <td>
                <td height="50px" class="thridincome">
                    <label>土地流转收入:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="land_psv"
                        id="2   _1_1"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>出租资产收入:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="lease_psv"
                        id="2_1_2"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>保险理赔收入:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="insurance_psv"
                        id="2_1_3"
                        placeholder="点击输入金额"
                />
            </td>
            <tr>
                <td height="50px" class="thridincome">
                    <label>其他:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="other4_psv"
                        id="2_2_1"
                        placeholder="点击输入金额"
                />
                </td>
            </tr>
            <tr>
                <td class="secondincome" colspan="3">
                    <h3 class="text-center">直接分红收入</h3>
                </td>
            </tr>
            <tr>
                <td height="50px" class="thridincome">
                    <label>县级产业:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="county_psv"
                        id="2_3_1"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>乡镇产业:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="town_psv"
                        id="2_3_2"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>村级产业:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="village_psv"
                        id="2_3_3"
                        placeholder="点击输入金额"
                />
                </td>
            </tr>
            <tr>
                <td height="50px" class="thridincome">
                    <label>其他:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="other5_psv"
                        id="2_2_4"
                        placeholder="点击输入金额"
                />
                </td>
            </tr>
        </table>
    </div>
    <!--工资性收入-->
    <div>
        <div>
            <h4 class="firstincome h4">工资性收入>></h4>
        </div>
        <table width="1200px">
            <tr>
                <td class="secondincome" colspan="3">
                    <h3 class="text-center">外出务工收入</h3>
                </td>
            </tr>
            <tr>
                <td height="50px" class="thridincome">
                    <label>长期务工:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        typ="text"
                        name="long-term_psv"
                        id="3_1_1"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>临时务工:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="temporary"
                        id="3_1_2"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>其他:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="other6_psv"
                        id="3_1_3"
                        placeholder="点击输入金额"
                />
                </td>
            </tr>
            <tr>
                <td class="secondincome" colspan="3">
                    <h3 class="text-center">村级公益岗收入</h3>
                </td>
            </tr>
            <tr>
                <td height="50px" class="thridincome">
                    <label>生态护林员:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="eco-ranger_psv"
                        id="3_2_1"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>长期公益岗:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="long-term_psv"
                        id="3_2_2"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>临时公益岗:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="Temporary public_psv"
                        id="3_2_3"
                        placeholder="点击输入金额"
                />
                </td>
            </tr>
        </table>
    </div>
    <!--转移性收入-->
    <div>
        <div>
            <h4 class="firstincome h4">转移性收入>></h4>
        </div>
        <table width="1200px">
            <tr>
                <td height="50px" class="thridincome">
                    <label>计划生育金:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="birth_control_psv"
                        id="4_2"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>低保金: </label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="low_premium_psv"
                        id="4_3"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>特困供养金:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="special_hardship_allowance_psv"
                        id="4_4"
                        placeholder="点击输入金额"
                />
                </td>
            </tr>
            <tr>
                <td height="50px" class="thridincome">
                    <label>养老保险金:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="pension_annuity_psv"
                        id="4_5"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>生态补偿金:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="ecological_debt_psv"
                        id="4_6"
                        placeholder="点击输入金额"
                />
                </td>
                <td class="secondincome" colspan="3">
                    <h3 class="text-center">其他转移性收入</h3>
                </td>
            </tr>
            <tr>
                <td height="50px" class="thridincome">
                    <label>高龄补贴:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="额补贴_psv"
                        id="4_1_1"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>残疾人生活补贴:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="disability living allowance_psv"
                        id="4_1_2"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>残疾人护理补贴:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="subsidies for the care of the disabled_psv"
                        id="4_1_3"
                        placeholder="点击输入金额"
                />
                </td>
            </tr>
            <tr>
                <td height="50px" class="thridincome">
                    <label>经常性捐赠:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="recurring donations_psv"
                        id="4_1_4"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>一般性赔偿:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="general indemnity_psv"
                        id="4_1_5"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>耕地地力保护补贴:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="subsidies for the protection of cultivated land_psv"
                        id="4_1_6"
                        placeholder="点击输入金额"
                />
                </td>
            </tr>
            <tr>
                <td height="50px" class="thridincome">
                    <label>生产者补贴:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="PSE_psv"
                        id="4_1_7"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>一次性补贴:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="nce-for-all-subsidy polic_psv"
                        id="4_1_8"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>庭院经济补贴:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="yard economic subsidy_psv"
                        id="4_1_9"
                        placeholder="点击输入金额"
                />
                </td>
            </tr>
            <tr>
                <td height="50px" class="thridincome">
                    <label>赡养费:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="maintenance_psv"
                        id="4_1_10"
                        placeholder="点击输入金额"
                />
                </td>
                <td height="50px" class="thridincome">
                    <label>其他:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input
                        class="amount"
                        type="text"
                        name="other7_psv"
                        id="4_1_11"
                        placeholder="点击输入金额"
                />
                </td>
            </tr>
        </table>
    </div>
    <!--生产经营性支出-->
    <div>
        <div>
            <h4 class="firstincome h4">生产经营性支出>></h4>
        </div>
        <table width="1200px">
            <tr>
                <td height="50px" class="thridincome">
                    <label>生产经营性支出:</label>&nbsp;&nbsp;&nbsp;&nbsp;<input class="amount" id="PAOE" typ="text"
                                                                                 name="long-term_psv"
                                                                                 placeholder="点击输入金额"/>
                </td>
        </table>
    </div>
    <!--一个关闭按钮-->
    <div class="row">
        <div class="col-sm-offset-5 col-sm-10">
            <button class="btn btn-warning btn-rounded btn-sm" onclick="closePage()">
                &nbsp;&nbsp;关闭&nbsp;&nbsp;
            </button>
        </div>
    </div>


</div>
</body>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<script th:inline="javascript">
    var prefix = ctx + "system/info";

    function closePage() {
        window.parent.location.reload();
    }

    window.onload = function () {
        let inputArray = document.querySelectorAll("input");
        for (const inputArrayElement of inputArray) {
            inputArrayElement.setAttribute("readOnly", true);
            inputArrayElement.setAttribute("placeholder", "");
        }
        // var prefix = ctx + "system/info";
        let {fid, idCard, natVillage, reportYear, name} = [[${baseFamilyInfo}]];
        const village = ["大六合", "后六合", "姜家瑶", "六家子东", "六家子西", "龙凤泡", "西石头", "小舍力"]
        document.getElementById("userName").innerHTML = name;
        document.getElementById("userId").innerHTML = fid;
        document.getElementById("year").innerHTML = reportYear;
        document.getElementById("userVillage").innerHTML = village[natVillage];
        document.getElementById("userIdCard").innerHTML = idCard;
        $.ajax({
            url: prefix+"/echo",
            type: "GET",
            data: {
                fid,
                year: reportYear
            }
            ,
            success: function ({data: {detailInfo: dd, baseInfo: {expense}}}) {
                document.getElementById("PAOE").value = expense == 0 ? null : expense
                for (let {firstCategory, secondaryCategory, tertiaryCategory, amount, quantity} of dd) {
                    firstCategory = firstCategory || "";
                    secondaryCategory = secondaryCategory || "";
                    tertiaryCategory = tertiaryCategory || "";
                    if (firstCategory == 1) {
                        const q = `${firstCategory}_${secondaryCategory}_${tertiaryCategory}_1`;
                        const a = `${firstCategory}_${secondaryCategory}_${tertiaryCategory}_2`;
                        document.getElementById(q).value = quantity;
                        document.getElementById(a).value = amount;
                    } else {
                        const a = `${firstCategory}_${secondaryCategory}${tertiaryCategory ? `_${tertiaryCategory}` : ""}`
                        console.log(a)
                        console.log(amount)
                        document.getElementById(a).value = amount;
                    }
                }
            },
            dataType: "json",
            contentType: "application/json;charset=utf-8",
        });
    }
</script>
</html>
